<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="${pageContext.request.contextPath}/">


	<title>毕业设计项目</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="css/style.css" rel="stylesheet" type="text/css">
<script src="js/jquery-1.9.0.js"></script>
<script src="../script/common.js"></script>
</head>
<script>
    function select() {
        window.location.href = "CstSustomer/selectContrBy?odrDate="+$("#odrDate").val()+"&odrCustName="+$("#custName").val();
    }

</script>
<body>

<div class="page_title">客户贡献分析</div>
<div class="button_bar">
	<button class="common_button" onclick="help('');">帮助</button>
	<button class="common_button" onclick="select();">查询</button>
	</div>
<table class="query_form_table">
	<tr>
		<th>客户名称</th>
		<td><input type="text" id="custName"></td>
		<th>年份</th>
		<td>
			<select id="odrDate">
				<option value=" ">全部</option>
				<option value="2005">2005</option>
				<option value="2006">2006</option>
				<option value="2007">2007</option>
				<option value="2008">2008</option>
				<option value="2009">2009</option>
				<option value="20010">2010</option>
			</select>

		</td>
	</tr>
	</table>
<br />
<table class="data_list_table">
	<tr>
		<th>编号</th>
		<th>客户名称</th>
		<th>订单金额（元）</th>
	</tr>
	<c:forEach var="vOrders" items="${vOrdersList}" varStatus="i">
	<tr>
		<td class="list_data_number" style="text-align: center">${i.index+1}</td>
		<td class="list_data_ltext" style="text-align: center">
		<c:if test="${not empty vOrders.odrCustName}">
			${vOrders.odrCustName}
		</c:if>
		</td>
		<td class="list_data_number" style="text-align: center">${vOrders.money}</td>
	</tr>
	</c:forEach>

</table>
</body>
</html>